<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>属性选择器</title>
    <style>
        input[type="text"] {
            border: 2px solid red;
        }

        .v1[name="张三丰"] {
            color: deepskyblue;
        }
    </style>
</head>
<body>
用户名：<input type="text" name="username">
密码：<input type="password" name="pwd">
<div class="v1" name="张三丰">太极拳</div>
<div class="v1" name="郭靖">降龙十八掌</div>
<div class="v1" name="段誉">六脉神剑</div>
</body>
</html>